#include <iostream>

/**
 * https://www.luogu.com.cn/problem/P1035
 */
int main(){

    double k;
    std::cin >> k;


    double sum = 0;
    double i=1;
    while (true){
        sum += 1/i;

        if (sum > k){
            std::cout << i;
            return 0;
        }
        
        i++;
    }

    return 0;
}